package cn.gbase.jiangsu.data.transfer.bean;

import java.math.BigDecimal;
import java.util.Date;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Readonly;
import org.nutz.dao.entity.annotation.Table;
import org.nutz.dao.entity.annotation.View;

/**
* 
*/
@Table("order_detail")
@View("order_detail_view")
public class ProductOrderDetail extends BaseDto {

	@Id
	@Column
	private int id;

	/**
	 * 订单ID.
	 */
	@Column("order_id")
	private int orderId;

	/**
	 * 商品ID.
	 */
	@Column("product_id")
	private int productId;
	/**
	 * 商品属性，如颜色等.
	 */
	@Column("product_field_value")
	@Readonly
	private String productFieldValue;

	public String getProductFieldValue() {
		return productFieldValue;
	}

	public void setProductFieldValue(String productFieldValue) {
		this.productFieldValue = productFieldValue;
	}

	/**
	 * 商品数量.
	 */
	@Column("product_count")
	private int productCount;

	/**
	 * 商品单价.
	 */
	@Column("sell_price")
	private BigDecimal sellPrice;

	/**
	 * 供货商的单价.
	 */
	@Column("supplier_price")
	private BigDecimal supplierPrice;

	/**
	 * 创建时间.
	 */
	@Column("create_time")
	private Date createTime;

	/**
	 * 商品名称.
	 */
	@Column("product_name")
	@Readonly
	private String productName;

	/**
	 * 商品图片1.
	 */
	@Column("product_pic1")
	@Readonly
	private String productPic1;

	/**
	 * 供货商ID.
	 */
	@Column("supplier_id")
	@Readonly
	private int supplierId;

	/**
	 * 供货商名称.
	 */
	@Column("supplier_name")
	@Readonly
	private String supplierName;

	/**
	 * 服务站ID.
	 */
	@Column("company_id")
	@Readonly
	private int companyId;

	/**
	 * 服务站名称.
	 */
	@Column("company_name")
	@Readonly
	private String companyName;

	/**
	 * 评论个数.
	 */
	private int commentCount;

	/**
	 * 商品小计金额.
	 */
	private BigDecimal subtotal;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getOrderId() {
		return orderId;
	}

	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}

	public BigDecimal getSupplierPrice() {
		return supplierPrice;
	}

	public void setSupplierPrice(BigDecimal supplierPrice) {
		this.supplierPrice = supplierPrice;
	}

	public int getProductId() {
		return productId;
	}

	public void setProductId(int productId) {
		this.productId = productId;
	}

	public int getProductCount() {
		return productCount;
	}

	public void setProductCount(int productCount) {
		this.productCount = productCount;
	}

	public BigDecimal getSellPrice() {
		return sellPrice;
	}

	public void setSellPrice(BigDecimal sellPrice) {
		this.sellPrice = sellPrice;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}

	public String getProductPic1() {
		return productPic1;
	}

	public void setProductPic1(String productPic1) {
		this.productPic1 = productPic1;
	}

	public int getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(int supplierId) {
		this.supplierId = supplierId;
	}

	public int getCommentCount() {
		return commentCount;
	}

	public void setCommentCount(int commentCount) {
		this.commentCount = commentCount;
	}

	public String getSupplierName() {
		return supplierName;
	}

	public void setSupplierName(String supplierName) {
		this.supplierName = supplierName;
	}

	public BigDecimal getSubtotal() {
		return subtotal;
	}

	public void setSubtotal(BigDecimal subtotal) {
		this.subtotal = subtotal;
	}

	public int getCompanyId() {
		return companyId;
	}

	public void setCompanyId(int companyId) {
		this.companyId = companyId;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

}